//
//  PulldownCell.m
//  BaseFrame
//
//  Created by wingfac on 2017/8/11.
//  Copyright © 2017年 com.mxh. All rights reserved.
//

#import "PulldownCell.h"
@interface PulldownCell()
@property (nonatomic,strong) UILabel *typeLabel;
@end
@implementation PulldownCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = 0;
        self.backgroundColor = getColor(mainColor);
        
        _typeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH/3, 43/WIDTH_5S_SCALE)];
        _typeLabel.textColor = [UIColor whiteColor];
        _typeLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:15];

        _typeLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:self.typeLabel];
        
        UIImageView *line = [[UIImageView alloc] initWithFrame:CGRectMake((SCREEN_WIDTH/3 - 80)/2, CGRectGetMaxY(_typeLabel.frame), 80, 1)];
        line.image = [UIImage imageNamed:@"虚线"];
        [self.contentView addSubview:line];
        

    }
    return self;
}
- (void)setType:(NSString *)type{
    
    self.typeLabel.text = type;
}
@end
